{if !$EMBEDDED_REPORT}
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<HEAD>
<LINK id="PRP_StyleSheet" REL="stylesheet" TYPE="text/css" HREF="{$STYLESHEET}">
<TITLE>{$TITLE}</TITLE>
</HEAD>
<BODY class="swMntBody">
{/if}
<H1 class="swTitle">{$TITLE}</H1>
{if strlen($STATUSMSG)>0} 
			<TABLE class="swStatus">
				<TR>
					<TD>{$STATUSMSG}</TD>
				</TR>
			</TABLE>
{/if}
{if strlen($ERRORMSG)>0} 
			<TABLE class="swError">
				<TR>
					<TD>{$ERRORMSG}</TD>
				</TR>
			</TABLE>
{/if}
<FORM class="swMntForm" name="topmenu" method="POST" action="{$SCRIPT_SELF}">
<input type="hidden" name="session_name" value="{$SESSION_ID}" />
{if $SHOW_TOPMENU}
	<TABLE class="swMntTopMenu">
		<TR>
{if ($DB_LOGGEDON)} 
			<TD style="width: 15%" class="swPrpTopMenuCell">
{if ($DBUSER)}
Logged On As {$DBUSER}
{else}
&nbsp;
{/if}
			</TD>
{/if}
{if strlen($MAIN_MENU_URL)>0} 
			<TD><a class="swLinkMenu" href="{$MAIN_MENU_URL}">Main Menu</a></TD>
{/if}
{if $SHOW_MODE_MAINTAIN_BOX}
			<TD style="width: 30%">Mode 
				<select class="swRunMode" name="execute_mode">
					<OPTION selected label="0" value="MAINTAIN">Design</OPTION>
					<OPTION label="1" value="PREPARE">Execute</OPTION>
					<OPTION label="2" value="XMLSHOW">XML Definition</OPTION>
					<OPTION label="3" value="SOAPSAVE">Generate Web Service</OPTION>
				</SELECT>
				<input class="swMntButton" type="submit" name="submit_execute_mode" value="Go">
			</TD>
{/if}
{if $SHOW_MODE_BOX}
			<TD style="width: 30%">Mode 
				<select class="swRunMode" name="execute_mode">
					<OPTION label="0" value="MAINTAIN">Design</OPTION>
					<OPTION selected label="1" value="PREPARE">Execute</OPTION>
				</select>
				<input class="swMntButton" type="submit" name="submit_execute_mode" value="Go">
			</TD>
{/if}
{if $SHOW_LOGOUT}
			<TD style="width: 15%" align="right" class="swPrpTopMenuCell">
				<input class="swPrpSubmit" type="submit" name="logout" value="Log Off">
			</TD>
{/if}
{if $SHOW_LOGIN}
			<TD style="width: 50%"></TD>
			<TD style="width: 35%" align="right" class="swPrpTopMenuCell">
				User Id <input type="text" name="userid" value=""><br>
				Password <input type="password" name="password" value="">
			</TD>
			<TD style="width: 15%" align="right" class="swPrpTopMenuCell">
				<input class="swPrpSubmit" type="submit" name="login" value="Login">
			</TD>
{/if}
		</TR>
	</TABLE>
{/if}
	<TABLE class="swMntMainBox" cellspacing="0" cellpadding="0">
		<TR>
			<TD>
{$CONTENT}
			</TD>
		</TR>
	</TABLE>
</FORM>
{if !$EMBEDDED_REPORT}
</BODY>
</HTML>
{/if}
